<table class="table table-striped table-hover" >
    <thead>
	    <tr>
	
		    <th> ${message(code: 'ordem.nome.label', default: 'Nome')} </th>
	
		    <th> ${message(code: 'ordem.tipo.label', default: 'Tipo')} </th>
	        
	        <th> ${message(code: 'ordem.comportamento.label', default: 'Comportamento')} </th>
	
	    </tr>
    </thead>
    <tbody>
    <g:each in="${ordemInstanceList}" status="i" var="ordemInstance">
	    <tr class="${(i % 2) == 0 ? 'even' : 'odd'}">
	
		    <td><g:link action="show" id="${ordemInstance.id}">${fieldValue(bean: ordemInstance, field: "nome")}</g:link></td>
	        
	        <td>
	            <g:if test="${ordemInstance?.tipo == 'Receita'}">
	                <span class="label label-success">
	            </g:if>
	            <g:else>
	                <span class="label label-danger">
	            </g:else>
	                <g:message code="ordem.tipo.${ordemInstance?.tipo}" />
	            </span>
	        </td>
	            
	
		    <td><g:message code="ordem.comportamento.${ordemInstance?.comportamento}" /></td>
	
	    </tr>
    </g:each>
    </tbody>
</table>
